<?php
abstract class Member_Controller extends CI_Controller{
    public function __construct(){
        session_start();
        parent::__construct();
        $this->_check_login();
    }
    /**
     * 检查用户是否登录
     *
     * @access  protected
     * @return  void
     */
    protected function _check_login(){
        
        if (!$_SESSION['MemberId'] || !$_SESSION['MemberId']) {
            redirect(base_url('/yjzb/login.php'));
        }
    }
}